package cn.xiaopengstack.api.service;

import cn.xiaopengstack.api.dto.*;
import cn.xiaopengstack.types.model.Response;

/**
 * @author jiangyangang
 */
public interface IMarketTradeService {

    /**
     * 锁定拼团营销订单
     * @param requestDTO
     * @return
     */
    Response<LockMarketOrderResponseDTO> lockGroupBuyMarketOrder(LockMarketOrderRequestDTO requestDTO);


    /**
     * 拼团订单结算
     * @param requestDTO
     * @return
     */
    Response<SettlementMarketOrderResponseDTO> settlementMarketPayOrder(SettlementMarketOrderRequestDTO requestDTO);

    /**
     * 拼团订单退款
     * @param groupBuyOrderRefundRequestDTO
     * @return
     */
    Response<GroupBuyOrderRefundResponseDTO> refundOrder(GroupBuyOrderRefundRequestDTO groupBuyOrderRefundRequestDTO);

}
